package cn.edu.xmut.chen.zhlg.zhlg.user.service.impl;

import cn.edu.xmut.chen.zhlg.zhlg.user.entity.Resume;
import cn.edu.xmut.chen.zhlg.zhlg.user.mapper.ResumeMapper;
import cn.edu.xmut.chen.zhlg.zhlg.user.param.ResumePageSearchParam;
import cn.edu.xmut.chen.zhlg.zhlg.user.result.ResumeResult;
import cn.edu.xmut.chen.zhlg.zhlg.user.service.ResumeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class ResumeServiceImpl extends ServiceImpl<ResumeMapper, Resume> implements ResumeService {
    @Override
    public Page<ResumeResult> pageSearch(ResumePageSearchParam param) {
        Page<ResumeResult> page = new Page<>(param.getPageNum(), param.getPageSize());
        return baseMapper.pageSearch(page, param.getSearch(), param.getWorkExperience(),
            param.getDegree());
    }
} 